package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface TravelCommendMapper {
    int insert(TravelCommend record);

    List<TravelCommend> selectForList(QueryObject qo);

    int updateByPrimaryKey(TravelCommend record);

    List<Map<String, Object>> selectForApp(@Param("type") Integer type,
                           @Param("begin") Date begin,
                           @Param("end") Date end);

    void deleteOldStrategyCommend();

    Integer selectTypeById(Long id);
}